import java.awt.Component;
import java.awt.BorderLayout;
import java.awt.Color;
import javax.swing.BorderFactory;


/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author ADM
 */
public class MedicalStore extends javax.swing.JFrame {
    private Component tab;
    String empName;
    /**
     * Creates new form MedicalStore
     */
    public MedicalStore(String s,String type) {
        initComponents();
        lbUserName.setText(s);
        empName= s;
        if (!type.equals("1")) {
            jbutUser.setEnabled(false);
            if (!type.equals("3")) {
                jbutMe.setEnabled(false);
                jbutSup.setEnabled(false);
                jbutCus.setEnabled(false);
            }

        }
        mains.setLayout(new  BorderLayout());
        jbutUser.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
        jbutUser.setContentAreaFilled(false);
        jbutMe.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
        jbutMe.setContentAreaFilled(false);
        jbutSup.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
        jbutSup.setContentAreaFilled(false);
        jbutCus.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
        jbutCus.setContentAreaFilled(false);
        jbutSta.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
        jbutSta.setContentAreaFilled(false);
        
        jbutSearch.setBorder(BorderFactory.createEmptyBorder(2,2,2,2));
        jbutSearch.setContentAreaFilled(false);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        lbUserName = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jPanel3 = new javax.swing.JPanel();
        jbutMe = new javax.swing.JButton();
        jbutSup = new javax.swing.JButton();
        jbutCus = new javax.swing.JButton();
        jbutSta = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jbutSearch = new javax.swing.JButton();
        jbutUser = new javax.swing.JButton();
        mains = new javax.swing.JTabbedPane();
        jPanel5 = new javax.swing.JPanel();
        jPanel4 = new javax.swing.JPanel();
        jLabel5 = new javax.swing.JLabel();

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Medical Store Billing");
        setBackground(new java.awt.Color(204, 204, 204));
        setResizable(false);

        jPanel1.setBackground(new java.awt.Color(204, 204, 204));
        jPanel1.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel1.setPreferredSize(new java.awt.Dimension(257, 38));

        jLabel1.setText("User Login :");

        lbUserName.setForeground(new java.awt.Color(255, 0, 0));
        lbUserName.setText("jLabel3");

        jLabel3.setForeground(new java.awt.Color(0, 153, 204));
        jLabel3.setText("Change password");
        jLabel3.setCursor(new java.awt.Cursor(java.awt.Cursor.HAND_CURSOR));
        jLabel3.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                jLabel3MouseClicked(evt);
            }
        });

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(37, 37, 37)
                .addComponent(jLabel1)
                .addGap(18, 18, 18)
                .addComponent(lbUserName)
                .addContainerGap(61, Short.MAX_VALUE))
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addContainerGap(81, Short.MAX_VALUE)
                .addComponent(jLabel3)
                .addGap(40, 40, 40))
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1, javax.swing.GroupLayout.DEFAULT_SIZE, 26, Short.MAX_VALUE)
                    .addComponent(lbUserName))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jLabel3, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel2.setBackground(new java.awt.Color(204, 0, 204));

        jLabel4.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel4)
        );
        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jLabel4, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        jPanel3.setBackground(new java.awt.Color(204, 204, 204));
        jPanel3.setBorder(javax.swing.BorderFactory.createEtchedBorder());
        jPanel3.setPreferredSize(new java.awt.Dimension(217, 518));

        jbutMe.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbutMe.setForeground(new java.awt.Color(0, 0, 255));
        jbutMe.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ListMenuPatient1.png"))); // NOI18N
        jbutMe.setText(" Medicine Manage");
        jbutMe.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jbutMe.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jbutMeMouseExited(evt);
            }
        });
        jbutMe.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jbutMeMouseMoved(evt);
            }
        });
        jbutMe.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbutMeActionPerformed(evt);
            }
        });

        jbutSup.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbutSup.setForeground(new java.awt.Color(0, 0, 255));
        jbutSup.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ListMenuPatient1.png"))); // NOI18N
        jbutSup.setText(" Supliers Manage");
        jbutSup.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jbutSup.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jbutSupMouseExited(evt);
            }
        });
        jbutSup.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jbutSupMouseMoved(evt);
            }
        });
        jbutSup.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbutSupActionPerformed(evt);
            }
        });

        jbutCus.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbutCus.setForeground(new java.awt.Color(0, 0, 255));
        jbutCus.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ListMenuPatient1.png"))); // NOI18N
        jbutCus.setText(" Customer Manage");
        jbutCus.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jbutCus.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jbutCusMouseExited(evt);
            }
        });
        jbutCus.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jbutCusMouseMoved(evt);
            }
        });
        jbutCus.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbutCusActionPerformed(evt);
            }
        });

        jbutSta.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbutSta.setForeground(new java.awt.Color(0, 0, 255));
        jbutSta.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ListMenuPatient1.png"))); // NOI18N
        jbutSta.setText(" Statistical Bill");
        jbutSta.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jbutSta.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jbutStaMouseExited(evt);
            }
        });
        jbutSta.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jbutStaMouseMoved(evt);
            }
        });
        jbutSta.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbutStaActionPerformed(evt);
            }
        });

        jLabel2.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/images9.png"))); // NOI18N
        jLabel2.setText("jLabel2");

        jbutSearch.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbutSearch.setForeground(new java.awt.Color(0, 0, 255));
        jbutSearch.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ListMenuPatient1.png"))); // NOI18N
        jbutSearch.setText(" Search");
        jbutSearch.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jbutSearch.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jbutSearchMouseExited(evt);
            }
        });
        jbutSearch.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jbutSearchMouseMoved(evt);
            }
        });
        jbutSearch.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbutSearchActionPerformed(evt);
            }
        });

        jbutUser.setFont(new java.awt.Font("Tahoma", 1, 11)); // NOI18N
        jbutUser.setForeground(new java.awt.Color(0, 0, 255));
        jbutUser.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/ListMenuPatient1.png"))); // NOI18N
        jbutUser.setText(" User Manage");
        jbutUser.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
        jbutUser.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseExited(java.awt.event.MouseEvent evt) {
                jbutUserMouseExited(evt);
            }
        });
        jbutUser.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
            public void mouseMoved(java.awt.event.MouseEvent evt) {
                jbutUserMouseMoved(evt);
            }
        });
        jbutUser.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jbutUserActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addContainerGap()
                        .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 174, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jbutUser, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jbutMe, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jbutSup, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel3Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addComponent(jbutCus, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGap(25, 25, 25)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jbutSearch, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE)
                            .addComponent(jbutSta, javax.swing.GroupLayout.DEFAULT_SIZE, 161, Short.MAX_VALUE))))
                .addContainerGap())
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jLabel2)
                .addGap(25, 25, 25)
                .addComponent(jbutUser)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbutMe)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbutSup)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbutCus)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbutSta)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jbutSearch)
                .addContainerGap(296, Short.MAX_VALUE))
        );

        mains.setBackground(new java.awt.Color(255, 255, 255));
        mains.setBorder(javax.swing.BorderFactory.createEtchedBorder(javax.swing.border.EtchedBorder.RAISED));
        mains.setTabLayoutPolicy(javax.swing.JTabbedPane.SCROLL_TAB_LAYOUT);
        mains.setMinimumSize(new java.awt.Dimension(38, 28));
        mains.setPreferredSize(new java.awt.Dimension(831, 520));
        mains.addPropertyChangeListener(new java.beans.PropertyChangeListener() {
            public void propertyChange(java.beans.PropertyChangeEvent evt) {
                mainsPropertyChange(evt);
            }
        });

        jPanel5.setBackground(new java.awt.Color(204, 204, 204));
        jPanel5.setBorder(javax.swing.BorderFactory.createEtchedBorder());

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 814, Short.MAX_VALUE)
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 518, Short.MAX_VALUE)
        );

        mains.addTab("", jPanel5);

        jPanel4.setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.RAISED));
        jPanel4.setPreferredSize(new java.awt.Dimension(820, 89));

        jLabel5.setIcon(new javax.swing.ImageIcon(getClass().getResource("/icon/images.jpg"))); // NOI18N

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jLabel5)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, 198, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(mains, javax.swing.GroupLayout.DEFAULT_SIZE, 827, Short.MAX_VALUE))
                    .addGroup(layout.createSequentialGroup()
                        .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 811, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(9, 9, 9)
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, 211, Short.MAX_VALUE)
                            .addGroup(layout.createSequentialGroup()
                                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(6, 6, 6)))))
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, 57, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 61, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(mains, javax.swing.GroupLayout.DEFAULT_SIZE, 554, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 554, Short.MAX_VALUE))
                .addContainerGap())
        );

        java.awt.Dimension screenSize = java.awt.Toolkit.getDefaultToolkit().getScreenSize();
        setBounds((screenSize.width-1067)/2, (screenSize.height-681)/2, 1067, 681);
    }// </editor-fold>//GEN-END:initComponents

    private void jbutSupActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbutSupActionPerformed
        SupplierManage supm = new SupplierManage();
        mains.removeAll();
        mains.add("", supm);
    }//GEN-LAST:event_jbutSupActionPerformed

    private void jbutStaActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbutStaActionPerformed
      StatisticalBills sb= new StatisticalBills(empName);
        mains.removeAll();
        mains.add("Statistical Bills",sb);
    }//GEN-LAST:event_jbutStaActionPerformed

    private void jbutCusActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbutCusActionPerformed
       CustomerManage cusm= new CustomerManage();
       mains.removeAll();
       mains.add("", cusm);
    }//GEN-LAST:event_jbutCusActionPerformed

    private void mainsPropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_mainsPropertyChange
        
    }//GEN-LAST:event_mainsPropertyChange

    private void jbutMeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbutMeActionPerformed

                MedicineManage mm= new MedicineManage();
        mains.removeAll();
        mains.add("",mm);
    }//GEN-LAST:event_jbutMeActionPerformed

    private void jbutUserActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbutUserActionPerformed
UserManage userm = new UserManage();
        mains.removeAll();
        mains.add("User Manage", userm);
    }//GEN-LAST:event_jbutUserActionPerformed

    private void jbutUserMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutUserMouseMoved
          jbutUser.setForeground(Color.red);
    }//GEN-LAST:event_jbutUserMouseMoved

    private void jbutMeMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutMeMouseMoved
          jbutMe.setForeground(Color.red);
    }//GEN-LAST:event_jbutMeMouseMoved

    private void jbutSupMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutSupMouseMoved
          jbutSup.setForeground(Color.red);
    }//GEN-LAST:event_jbutSupMouseMoved

    private void jbutCusMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutCusMouseMoved
          jbutCus.setForeground(Color.red);
    }//GEN-LAST:event_jbutCusMouseMoved

    private void jbutStaMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutStaMouseMoved
          jbutSta.setForeground(Color.red);
    }//GEN-LAST:event_jbutStaMouseMoved

    private void jbutSearchMouseMoved(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutSearchMouseMoved
          jbutSearch.setForeground(Color.red);
    }//GEN-LAST:event_jbutSearchMouseMoved

    private void jbutUserMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutUserMouseExited
        jbutUser.setForeground(Color.blue);
    }//GEN-LAST:event_jbutUserMouseExited

    private void jbutMeMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutMeMouseExited
        jbutMe.setForeground(Color.blue);
    }//GEN-LAST:event_jbutMeMouseExited

    private void jbutSupMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutSupMouseExited
        jbutSup.setForeground(Color.blue);
    }//GEN-LAST:event_jbutSupMouseExited

    private void jbutCusMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutCusMouseExited
        jbutCus.setForeground(Color.blue);
    }//GEN-LAST:event_jbutCusMouseExited

    private void jbutStaMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutStaMouseExited
        jbutSta.setForeground(Color.blue);
    }//GEN-LAST:event_jbutStaMouseExited

    private void jbutSearchMouseExited(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jbutSearchMouseExited
        jbutSearch.setForeground(Color.blue);
    }//GEN-LAST:event_jbutSearchMouseExited

    private void jbutSearchActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jbutSearchActionPerformed
        Search sea = new Search();
        mains.removeAll();
        mains.add("",sea);
    }//GEN-LAST:event_jbutSearchActionPerformed

    private void jLabel3MouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_jLabel3MouseClicked
       ChangePass changep= new ChangePass(empName);
       mains.removeAll();
       mains.add("",changep);
    }//GEN-LAST:event_jLabel3MouseClicked

    /**
     * @param args the command line arguments
     */
    public static void main(String args[]) {
       
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(MedicalStore.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(MedicalStore.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(MedicalStore.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(MedicalStore.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                new MedicalStore(null,null).setVisible(true);

            }
        });
    }
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JButton jbutCus;
    private javax.swing.JButton jbutMe;
    private javax.swing.JButton jbutSearch;
    private javax.swing.JButton jbutSta;
    private javax.swing.JButton jbutSup;
    private javax.swing.JButton jbutUser;
    private javax.swing.JLabel lbUserName;
    public static javax.swing.JTabbedPane mains;
    // End of variables declaration//GEN-END:variables
}
